#include "junix.h"
using namespace std;

struct A
{
	int i;
	int j;
	A(int ii,int jj):i(ii), j(jj) { }
	A(int ii):i(ii), j(2) { }

	operator double()
	{
		return static_cast<double>(i)/static_cast<double>(j);
	}
};

int main(int argc, char **argv)
{
	A a(3,4);
	A b=9;
	cout<<a<<endl;
	cout<<b<<endl;
}
